<?php
  namespace app\admin\controller;
  use \think\Cookie;
  class Base extends \think\Controller{
  	public $mem;
	protected $redis;
    function __construct(){
       parent::__construct();
        $this->mem=\think\Cache::store('memcache');
         $this->redis=new \redis();
	     $this->redis->connect('localhost',6379);
	     $this->redis->auth('1234');
    }
  }
?>